package com.dkm.ec.bbs.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.bbs.domain.BbsTopic;
import com.dkm.ec.bbs.repository.BbsTopicRepository;
import com.dkm.ec.bbs.persistence.dao.BbsTopicQueryDao;
import com.dkm.ec.bbs.persistence.entity.BbsTopicPo;

/**
 * 对象功能:论坛主题 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-24 17:40:29
 */
@Repository
public class BbsTopicRepositoryImpl extends AbstractRepository<String, BbsTopicPo,BbsTopic> implements BbsTopicRepository{
	  
	@Resource
	private  BbsTopicQueryDao bbsTopicQueryDao;

	public BbsTopic newInstance() {
		BbsTopicPo po = new BbsTopicPo();
		BbsTopic bbsTopic = SpringHelper.getBean(BbsTopic.class);
		bbsTopic.setData(po);
		return bbsTopic;
	}

	public BbsTopic newInstance(BbsTopicPo po) {
		BbsTopic bbsTopic = SpringHelper.getBean(BbsTopic.class);
		bbsTopic.setData(po);
		return bbsTopic;
	} 
	
	@Override
	protected IQueryDao<String, BbsTopicPo> getQueryDao() {
		return bbsTopicQueryDao;
	}
	
}
